package com.zx.serviceribbon.controller;

import com.zx.serviceribbon.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description HelloRibbon http://localhost:8004/hi?name=zx
 * @Author Zhang Xin
 * @Date 2020/7/22
 */
@RestController
public class HelloRibbon {
    @Autowired
    RibbonService ribbonService;

    @GetMapping(value = "/hir")
    public String hi(@RequestParam String name) {
        return ribbonService.hiService( name );
    }


}
